import $http from "./requst";
// 登陆
export const login = data =>
  $http({ url: "/technician/login", method: "post", data });
// 首页数据
export const index = data =>
  $http({ url: "/technician/My", method: "post", data });
// 核销验证码
export const verificationOrder = data =>
  $http({
    url: "/technician/Receiving/verificationOrder",
    method: "post",
    data
  });
// 获取关联套餐id
export const packageSave = data =>
  $http({
    url: "/technician/My/packageSave",
    method: "post",
    data
  });
// 获取所有套餐
export const packageList = data =>
  $http({
    url: "/technician/My/package",
    method: "post",
    data
  });
// 接单记录
export const Receiving = data =>
  $http({ url: "/technician/Receiving", method: "post", data });

// 接单操作
export const sureOrder = data =>
  $http({ url: "/technician/Receiving/save", method: "post", data });
// 提现记录
export const withdrawalRecord = data =>
  $http({
    url: "/technician/Withdrawal/withdrawalRecord",
    method: "post",
    data
  });
// 资金明细
export const fundDetails = data =>
  $http({
    url: "/technician/Withdrawal/fundDetails",
    method: "post",
    data
  });
// 立即提现
export const withdrawal = data =>
  $http({
    url: "/technician/Withdrawal/withdrawal",
    method: "post",
    data
  });
// 获取可提现金额
export const getRawal = data =>
  $http({
    url: "/technician/Withdrawal",
    method: "post",
    data
  });
// 据单
export const refuseOrder = data =>
  $http({
    url: "/technician/Receiving/refuseOrder",
    method: "post",
    data
  });
// 待接单数量
export const waitOrder = data =>
  $http({
    url: "/technician/My/waitOrder",
    method: "post",
    data
  });
// 账号设置
export const editInfo = data =>
  $http({
    url: "/technician/My/editInfo",
    method: "post",
    data
  });
// 微信分享
export const Wechatshare = data =>
  $http({
    url: "/common/Wechatshare",
    method: "post",
    data
  });
